package org.nbict.iot.trash;

import org.apache.storm.task.TopologyContext;
import org.apache.storm.topology.BasicOutputCollector;
import org.apache.storm.topology.OutputFieldsDeclarer;
import org.apache.storm.topology.base.BaseBasicBolt;
import org.apache.storm.tuple.Tuple;
import org.nbict.iot.persist.pool.DbRepository;
import org.nbict.iot.persist.repo.MongoRepo;

import java.util.Map;

/**
 * Created by songseven on 18/6/20.
 */
@Deprecated
public class RealtimeCarBolt extends BaseBasicBolt {

    private MongoRepo repo;

    public void prepare(Map stormConf, TopologyContext context) {
        repo = (MongoRepo) DbRepository.MONGO.getInstance();
    }

    @Override
    public void execute(Tuple input, BasicOutputCollector
            collector) {
    }

    @Override
    public void declareOutputFields(OutputFieldsDeclarer outputFieldsDeclarer) {

    }
}
